package com.example.study_manger.repository;

import com.example.study_manger.entity.ApplyPermission;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

public interface ApplyPermissionRe extends JpaRepository<ApplyPermission,Long>, JpaSpecificationExecutor<ApplyPermission> {
    ApplyPermission findByUsername(String username);

    Page<ApplyPermission> findByUsernameContainingAndRoleOrganizationId(String s, Long organizationId, Pageable pageable);
}
